package mac.types.interfacePedlInstr;

public class Variable {

  protected String name;
  protected boolean aliased;

  public Variable() { name = ""; aliased = false; }
  public Variable(String n) { name = n; aliased = false; }
  public Variable(String n, boolean a) { name = n; aliased = a; }

  public String getName() { return name; }
  public boolean isAliased() { return aliased; }
  public String hd(String s) { return s.substring(0, s.lastIndexOf('.')); }
  public String tl(String s) { return s.substring(s.lastIndexOf('.')+1); }
}
